/**
 * This file is part of the dspace-poltman project http://www.poltman.com.
 *
 * This is free software; you can redistribute it and/or modify it under
 * the terms of DuraSpace DSpace license detailed in the LICENSE and NOTICE 
 * files at the root of the source tree and available online at
 * http://www.dspace.org/license/
 * 
 */

package com.poltman.dscentral.db.repository.pm;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.poltman.dscentral.db.entity.pm.MainMenuLabelsEntity;



/**
 * 
 * @author z.ciok@poltman.com
 * @version $Revision: 1673 $
 *
 */
@Transactional(readOnly = true)
public interface MainMenuLabelsRepository extends JpaRepository<MainMenuLabelsEntity, Integer> {
	
	public MainMenuLabelsEntity findByKeyAndLanguageCode(String key, String languageCode);
	
	@Query("select DISTINCT c.key from MainMenuLabelsEntity c order by c.key")
	public List<String> findAllDistinct();

}
